import { EditOutlined } from "@ant-design/icons"
import  RouterDatas  from "./Layout/routerData"
import React from "react"
export const routes = [
    {
        path:'/',
        component:'@/pages/index.tsx',
        extra:true,
        routes:[
            {
                path:'/',
                redirect:'/login'
            },
            {
                path:'/login',
                component:'@/pages/Login/LoginPro'
            },
            {
                path:'/admin',
                component:'@/pages/Layout/Layout',
                routes:[
                    {
                        path:'/admin',
                        redirect:'/admin/homes'
                    }, 
                    ...RouterDatas
                ]
            },
            // {
            //     path: '/admin/advise/detail/:id',
            //     component: '@/pages/Advise/AdviseDetail',
            // },
            // {
            //     path: '/admin/advise/update/:id',

            //     component: '@/pages/Advise/AdviseUpload',

            // },

        ]
    }
]